package display;

import javax.swing.*;
import java.awt.*;

public class AboutUs extends JDialog {
    public AboutUs(){

        this.setSize(700,350);
        this.setLocationRelativeTo(null);
        this.setResizable(false);
        this.setTitle("关于扫雷");
        JPanel panel=new JPanel() {
            @Override
            public void paintComponent(Graphics g){
                g.drawImage( Toolkit.getDefaultToolkit().getImage( "src/image/menubar.jpg"),0,0,700,800,this);
            }

        };/*创建一个容器*/
        
        JLabel lable=new JLabel();/*用来显示信息*/
        Font font=new Font("微软雅黑",Font.PLAIN,20);
        lable.setFont(font);
        lable.setLocation(100,100);
        lable.setText("<html>&nbsp&nbsp&nbsp&nbsp《扫雷》是一款大众类的益智小游戏，于1992年发行。游戏目<br>标是在最短的时间内根据点击格子出现的数字找出所有非雷格子，<br>同时避免踩雷，踩到一个雷即全盘皆输。<br><br>制作人：徐利发<br>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp贾继强<br>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp张弘来<br>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp高雪婷<br>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp王庆锴</html>");
        lable.setOpaque(false);
        panel.add(lable);
        this.add(panel);
    }
}
